package model

import "github.com/gogf/gf/v2/os/gtime"

//单词强度

type ProficiencyLevel uint

const (
	ProficiencyLevel1 ProficiencyLevel = iota + 1 //1
	ProficiencyLevel2                             //2
	ProficiencyLevel3
	ProficiencyLevel4
	ProficiencyLevel5
)

type WordInput struct {
	Uid                uint
	Word               string
	Definition         string
	ExampleSentence    string
	ChineseTranslation string
	Pronunciation      string
	ProficiencyLevel   ProficiencyLevel
}

type WordList struct {
	Id                 uint        `json:"id"                 orm:"id"                  description:""` //
	Word               string      `json:"word"               orm:"word"                description:""` //
	Definition         string      `json:"definition"         orm:"definition"          description:""` //
	ExampleSentence    string      `json:"exampleSentence"    orm:"example_sentence"    description:""` //
	ChineseTranslation string      `json:"chineseTranslation" orm:"chinese_translation" description:""` //
	Pronunciation      string      `json:"pronunciation"      orm:"pronunciation"       description:""` //
	ProficiencyLevel   uint        `json:"proficiencyLevel"   orm:"proficiency_level"   description:""` //
	CreatedAt          *gtime.Time `json:"createdAt"          orm:"created_at"          description:""` //
	UpdatedAt          *gtime.Time `json:"updatedAt"          orm:"updated_at"          description:""` //
}

type WordQuery struct {
	Uid  uint
	Word string
	Page int
	Size int
}
